package com.csun.cmny.provider.service;

import com.csun.cmny.provider.model.dto.sleep.BedOldmanSleepReqDto;
import com.csun.cmny.provider.model.vo.CsunSleepDataReqVo;
import com.csun.cmny.provider.service.hystrix.DmcCsunSleepDataFeignApiHystrix;
import com.csun.cmny.provider.service.hystrix.DmcDeviceFeignApiHystrix;
import com.csun.cmny.security.feign.OAuth2FeignAutoConfiguration;
import com.csun.cmny.util.wrapper.Wrapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List; /**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-03-14 20:51
 * @Description: the interface dmc csun sleep data feign api
 */
@FeignClient(value = "cmny-provider-dmc", configuration = OAuth2FeignAutoConfiguration.class, fallback = DmcCsunSleepDataFeignApiHystrix.class)
public interface DmcCsunSleepDataFeignApi {

    @PostMapping(value = "/api/dmc/csunSleep/queryCsunSleepDataByBedOldmanList")
    Wrapper<List<CsunSleepDataReqVo>> queryCsunSleepDataByBedOldmanList(@RequestBody List<BedOldmanSleepReqDto> bedOldmanSleepReqDtoList);

}
